﻿using Project.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.IService
{
    public partial interface IWebUserService
    {
        /// <summary>
        /// 获取用户DTO对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UserDto> GetUserDtoAsync(Guid id);

        /// <summary>
        /// 用户登录，返回登录dto对象
        /// </summary>
        /// <param name="phone"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        Task<UserDto> CheckIdentity(string phone, string pwd);

        /// <summary>
        /// 根据电话号码获取用户id，用于重置密码
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        Task<Guid> GetUserIdByPhone(string phone);
    }
}
